package com.dddexplained.designbootcamp.designpatterns.state.device.before;

public class TelnetService {
    private DeviceState currentState = new InitialState(this);

    public void setCurrentState(DeviceState deviceState) {
        currentState = deviceState;
    }

    public void transfer() {
        // can't avoid if statement
        if (currentState instanceof InitialState) {
            currentState.login();
        }
        if (currentState instanceof MasterBoardUshellState) {
            currentState.exitUshell();
        }

        System.out.println("transfer in MasterBoardShell");
    }

    public void active() {

    }

    public void inactive() {

    }

    public void put() {

    }

    public void get() {

    }

    public void deleteFiles() {

    }

    public void dbtr1024() {

    }

    public void dbtr1028() {

    }
}
